<?php
/**
 * @author Dave Newsom
 * @name OTFUser
 * @version 3.0
 * @copyright Copyright (c) 2010
 */

abstract class OTFUser {
	
	/**
	 * Get Officer information from the command code database
	 * @param string $username
	 * @param string $password
	 */
	public static function getOfficer($username, $password) {
		$page = "cgi-bin/externallookup.pl?mode=standard&username={$username}&commandcode={$password}";
		$data = explode("|", join("", file("http://outpost10f.com/" . $page)));
		return array (
			"officerID" => $data[1],
			"clearanceLevel" => $data[2],
			"isBanned" => $data[3],
			"handle" => $data[4]
		);
	}
}

?>